<?php
namespace app\controller;
use app\exception\RequestMethodInvalidate;
use app\facade\logic\User as FaUserLogic;
use app\BaseController;

class Home extends BaseController
{
    /**
     * login
     * @Route("/login")
     */
    public function login(){
        //
        if($this->request->isPost()){
            FaUserLogic::login();
        }
        throw new RequestMethodInvalidate();
    }
}
